package com.ynet.middleground.riskmanage.bean.newrizhaogang;

import com.ynet.core.common.BaseReqObj;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @author songyf
 * @description 控货结果异步通知信息
 * @date 2022-05-12 15:42
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "控货结果异步通知信息", description = "控货结果异步通知信息")
public class NewRzgControlCargoAsynReq extends BaseReqObj{


    private static final long serialVersionUID = -9101872818700489545L;
    @ApiModelProperty(value = "控货指令id", notes = "控货指令id")
    private String orderId;

    @ApiModelProperty(value = "解除控货指令id（解除时必填）", notes = "解除控货指令id（解除时必填）")
    private String relieveOrderId;

    @ApiModelProperty(value = "控货处理类型（0 控货/ 1 解控）", notes = "控货处理类型（0 控货/ 1 解控）", required = true)
    @NotBlank(message = "控货处理类型不能为空")
    private String orderType;

    @ApiModelProperty(value = "处理时间", notes = "处理时间", required = true)
    @NotBlank(message = "处理时间不能为空")
    private String procTime;

    @ApiModelProperty(value = "处理结果（0 成功/ 1 失败）", notes = "处理结果（0 成功/ 1 失败）", required = true)
    @NotBlank(message = "处理结果不能为空")
    private String status;

    @ApiModelProperty(value = "错误消息", notes = "错误消息")
    private String errorMsg;
}
